﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class Control_Question : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            BindData();
    }

    protected void BindData()
    {
        ddlQuestions.DataSource = new MatchIns.BLL.TQuestion().GetList();
        ddlQuestions.DataTextField = "QuestionName";
        ddlQuestions.DataValueField = "QuestionName";
        ddlQuestions.DataBind();
        ddlQuestions.Items.Insert(0,new ListItem("","0"));
    }

    /// <summary>
    /// 用户选择的密码提示问题
    /// </summary>
    public string GetQuestion
    {
        get
        {
            return ddlQuestions.SelectedValue;
        }
    }
}
